package com.taotao.logback;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class LogbackTest {
    @Test
    public void test01() throws InterruptedException {
        Logger logger = LoggerFactory.getLogger(LogbackTest.class);

        for (int i = 0; i < 100; i++) {
            logger.error("error信息1");
            logger.warn("warn信息2");
            logger.info("info信息3");
            logger.debug("debug信息4");
            logger.trace("trace信息5");
        }

        Thread.sleep(1000);

        System.out.println("======");
        System.out.println("======");
        System.out.println("======");
        System.out.println("======");
        System.out.println("======");
        System.out.println("======");
        System.out.println("======");
        System.out.println("======");
    }
}
